﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using SES.CMS.BL;
using SES.CMS.DO;

namespace SES.CMS
{
    public partial class ClientSite : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Page.Title = new sysConfigBL().Select(new sysConfigDO { ConfigID = 1 }).ConfigValue.ToString();
        }
        protected void txtSearch_TextChanged(object sender, EventArgs e)
        {
            Response.Redirect("/Search/" + txtSearch.Text.Trim() + "/Tim-Kiem.aspx");
        }

        private void txtSearch_Enter(object sender, System.EventArgs e)
        {
            txtSearch_TextChanged((object)sender, (EventArgs)e);
        }
        protected void SearchButton_Click(object sender, EventArgs e)
        {
            Response.Redirect("/Search/" + txtSearch.Text.Trim() + "/Tim-Kiem.aspx");
        }
        
    }
}
